<?php

class haha {
	var $myvar;
	function getMyVar(){
		return $this->myvar;
	}
	function setMyVar($val){
		$this->myvar = $val;
	}
}

$h = new haha();
$h->setMyVar('hahaha');
print_r($h);

?>
